<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>显示当前系统时间</button>
    <div>某个时间</div>
    <div></div>

    <script>
      //当我们点击了按钮   div 里面的文字会发现生变
      //1 .获取元素
      var btt = document.quertSelectior('button');
      var dii = document.quertSelectior('div');

      //2.注册事件
      btt.onclick = function () {
        dii.innerText = Dare;
      };

      function gDate() {
        var date = new Date();
        var year = date.getFullYear();
        var yue = date.grtMonth();
        var ri = date.getDate();
        
      }
  
    </script>
  </body>
</html>
